home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Archive Magazine CD 1995
/
Archive Magazine CD 1995.iso
/
text
/
hints
/
volume_02
/
issue_01
next >
Wrap
Text File
|
1995-02-16
|
5KB
|
124 lines
• How to wipe a disc clean − If you want to wipe a disc completely
clean, you can use *WIPE * ~CFR<return> (Use this command with care −
there’s no going back once you’ve pressed <return>!) − in other words,
remove files with any name (*), don’t ask for confirmation of each wipe
(~C), force them (F) to be deleted even if they are locked and do it
recursively (R) so that the contents of all directories are deleted.
However, even this drastic measure won’t allow you to delete a library
directory if one exists. So do a *Lib “”<return> before the *WIPE
command.
2.1
• GammaPlot/System Delta Plus − If you have been trying to import SDP
files into GammaPlot and have been unsuccessful, read onÉ Firstly you
have to copy the System Delta Plus software onto your GammaPlot disc.
Then if it still doesn’t work, it will be because you have an older
version of System Delta Plus. Send the original SDP disc back to Minerva
and ask for an up-grade.
2.1
• Mounting problems (sic) − Do you find that sometimes it refuses to
respond to a *MOUNT command even if you take the disc out and put it
back in again? Two solutions: type *BYE and then you should find that
*CAT will cause it to access the disc OR if, like me, you’ve got *MOUNT
on a function key, just do a *MOUNT with no disc in the drive then
*MOUNT with the new disc in place. If you are in First Word Plus where
you cannot issue star commands anyway, the latter technique should do
the trick since you can achieve the equivalent of *MOUNT by clicking on
the close box (the X) in the file menu. (Just as a matter of interest,
does anyone know why it gets into this state sometimes?)
2.1
• Users of C (and other compiled languages) may find the following
command file useful, as sent in by Peter Linstead. You can put it in the
$ directory of your hard disc and use it when starting a C programming
session. Once you have assigned your current program’s name to NAME
using, for example, *SET NAME MYPROG you can edit the source file by
pressing <f1>. Once out of TWIN, <f2> will compile and link the source
code and <f3> will execute the run code. By using SETMACRO, you can
change the working name with another *SET command without running the
command file again. It assumes that both FPE and TWIN are in the
$.Library.
2.1
*| > $.Library .C
2.1
*FPE
2.1
*DIR $.ARM.BENCH
2.1
*SETMACRO ALIAS$AUTOT *TWIN
2.1
C.<NAME> |M
2.1
*SETMACRO ALIAS$AUTOC *CC <NAME>
2.1
− LINK |M
2.1
*SETMACRO ALIAS$AUTOR *RUN
2.1
P.<NAME> |M
2.1
*KEY 1 *AUTOT|M
2.1
*KEY 2 *AUTOC|M
2.1
*KEY 3 *AUTOR|M
2.1
*SET RUN$PATH ,%.,$.ARM.LIBRARY.,@.P.
2.1
*GOS
2.1
(I have just reproduced this from Peter’s hand-written letter and I
haven’t got C to try it out on, so I hope I’ve transcribed it correctly.
If it hadn’t been for the postal strike I’d have sent it to David Wild
first, so please bear with us if you find it is not completely correct.
Ed.)
2.1
• ANSI C Compiler − Mike Sherratt writesÉ “On a very fundamental noteÉ
The manual is very terse. To compile the demo programs on the distribu
tion diskette − Balls64, Sieve and Hello, heed the ReadMe file where it
says ‘RMLoad the FP emulator etc i.e. RMload fpe240’. Get to the
directory level ‘Bench’ then do:
2.1
*CC −Arthur Sieve
2.1
The spaces are significant, ‘−’ is minus. The Sieve source file is in
sub-directory ‘c’. The executable file is now in sub-directory ‘p’.
2.1
The program can be run from the star prompt by typing *Sieve. The ‘c.’
prefix is embedded (for lack of a better word) in the compiler, so don’t
try to create the prefix!! You are now on the way.
2.1
This information came thanks to Watford Elec-tronics who used Acorn’s
dealer hot-line for me.“
2.1
(Because of the postal strike, this has been inserted by the Ed rather
than sending it to David for checking, so hopefully it will be OK!?)
2.1
• Formatting from programs − If you want to write a disc copier
program, as we at Archive obviously did for copying the program discs,
you have to find some way to get round the fact that *FORMAT asks for a
keyboard confirmation. We did it by creating a file on the second drive
that consisted of just <Y> and then called that is input from the
program. Ingenious! But then we found the easy (undocumented) way of
doing it:
2.1
*FORMAT 0 D Y
2.1
Simple if you know how!
2.1
• Replacement 3.5“ disc drives − One reader had to replace his 3.5”
drive and Acorn could only offer him the official second disc drive up-
grade (which includes a new front facia which he didn’t need) so he
bought an un-cased 3.5“ drive from Matmos Ltd (1 Church Street,
Cuckfield, W.Sussex, RH17 5JZ, 0444−414484) for £59.50 + £3 carriage +
VAT. This drive was almost a direct fit and only required some judicious
filing of the button slot to complete the replacement.
2.1
• Debugging ARM code listings − It is sometimes useful for non-ARM
code specialists who want to type in ARM code program listings to have
‘wayside pointers’ as the code runs to help them debug the program and
find out where they have made typing errors. Adding the occasional SWI
&1nn (where nn is 30 to 39 for number 0 to 9) will print out these
numbers as an indication of how far the program has got. (Better still,
buy the monthly program disc!!! Ed.)
2.1